﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RenAi.Medical.DAL;
using RenAi.Medical.Model;
using System.Data;

namespace RenAi.Medical.BLL
{
    public class HospitalBasicBLL
    {
        //实例化对象
        HospitalBasicDAL dal = new HospitalBasicDAL();

        /// <summary>
        ///获取医院所有信息总行数
        /// </summary>
        /// <returns></returns>
        public int Getcount()
        {
            return dal.Getcount();
        }
        /// <summary>
        /// 显示医院基本所有信息(编号，名称，时间，电话，路径，简介)
        /// </summary>
        /// <param name="PagerIndex"></param>
        /// <param name="PagerSize"></param>
        /// <returns></returns>
        public DataTable GetHospitalBasicAll()
        {
            return dal.GetHospitalBasicAll();
        }
         /// <summary>
        /// 添加医院基本信息
        /// </summary>
        /// <param name="h"></param>
        /// <returns></returns>
        public int AddHosp(HospitalBasic h)
        {
            return dal.AddHosp(h);
        }
        /// <summary>
        /// 根据医院编号删除医院基本信息
        /// </summary>
        /// <param name="HB_Id"></param>
        /// <returns></returns>
        public int DeleteHospitalBasic(string HB_Id)
        {
            return dal.DeleteHospitalBasic(HB_Id);
        }
        /// <summary>
        /// 根据医院编号找到医院基本信息
        /// </summary>
        /// <param name="HB_Id"></param>
        /// <returns></returns>
        public DataTable GetHospitalBasic(string HB_Id)
        {
            return dal.GetHospitalBasic(HB_Id);
        }
        /// <summary>
        /// 修改医院基本信息
        /// </summary>
        /// <param name="hosp"></param>
        /// <returns></returns>
        public int UptHospitalBasic(HospitalBasic hosp)
        {
            return dal.UptHospitalBasic(hosp);
        }
          /// <summary>
        /// 根据医院名称进行查询
        /// </summary>
        /// <param name="HB_Name"></param>
        /// <returns></returns>
        public DataTable SearchHospitalBasic(string HB_Name)
        {
            return dal.SearchHospitalBasic(HB_Name);
        }
    }
}
